package com.bigdatastudio.openfeign.fallback;

import com.bigdatastudio.common.Utils.R;
import com.bigdatastudio.openfeign.client.NoticeClient;
import org.springframework.stereotype.Component;

/**
 * @author xiao_jie
 * @date 2022/11/6 20:33
 * @describe this is a text
 */

@Component
public class NoticeClientFallBack implements NoticeClient {
    @Override
    public R getOne(Integer id) {
        return R.error("获取失败，请稍后重试!!");
    }
}
